<script setup lang="ts">
defineProps(['ming', 'mima'])
const emit = defineEmits(['update:ming', 'update:mima'])
</script>

<template>
<input type="text" :value="ming"
       @input="emit('update:ming', (<HTMLInputElement>$event.target).value)">
  <input type="text" :value="mima"
         @input="emit('update:mima', (<HTMLInputElement>$event.target).value)">
</template>

<style scoped>
input {
 background-color: aqua;
}
</style>